//
//  LxMallNotice.h
//  LvXiMark
//
//  Created by apple on 16/4/21.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger,LxMallNoticeStyle){
    //上下滚动
    LxMallNoticeStyle1,
    //左右滚动
    LxMallNoticeStyle2
};
@interface LxMallNotice : UIView
@property(nonatomic,assign)LxMallNoticeStyle style;


/**滚动时间*/
@property(nonatomic,assign)NSTimeInterval frameInterval;

/**
 *  当前消息
 */
@property(nonatomic,copy)NSString * currentMessege;

-(id)initWithFrame:(CGRect)frame frameInterval:(NSInteger)frameInterval;
-(id)initWithFrame:(CGRect)frame frameInterval:(NSTimeInterval)frameInterval style:(LxMallNoticeStyle)style;
@property(nonatomic,strong)NSArray * messeges;


/**字体*/
@property(nonatomic,strong)UIFont * messegeFont;

/**字体颜色*/
@property(nonatomic,strong)UIColor * messegeColor;


-(void)timerStart;
-(void)timerStop;
@end

UIKIT_EXTERN NSString * kNoticeStopTimerNotification;
UIKIT_EXTERN NSString * kNoticeStartTimerNotification;
